<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/common/common.jsp"%>

<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title><%=systemManageName %></title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="<%=path %>/res/assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="<%=path %>/res/assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="<%=path %>/res/assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="<%=path %>/res/assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">

  <!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
  <!--
  <link rel="canonical" href="http://www.example.com/">
  -->

  <link rel="stylesheet" href="<%=path %>/res/assets/css/amazeui.min.css">
  <link rel="stylesheet" href="<%=path %>/res/assets/css/app.css">
  
  <link rel="stylesheet" href="<%=path %>/res/css/amaze-custom.css">
  
  
  <link rel="stylesheet" href="<%=path %>/res/zTree_v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
  <style type="text/css">
  	.am-container {
	 	width: 1000px !important;
		max-width: none;
	}
  </style>
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a
  href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

	<%@ include file="/common/nav.jsp"%>

	
	<div class="am-container">
	
		<h1>资源列表</h1>
	
		<div class="am-g">
			<div class="am-u-sm-6">
				<ul id="tree" class="ztree"></ul>
			</div>
			<div class="am-u-sm-6">
				<form class="am-form am-form-horizontal">
					<div class="am-form-group">
						<label for="parentName" class="am-u-sm-4 am-form-label">父节点</label>
						<div class="am-u-sm-8">
							<input type="text" id="parentName" placeholder="" disabled="disabled">
						</div>
					</div>
					
					<div class="am-form-group">
						<label for="parentName" class="am-u-sm-4 am-form-label"><font color="red">*</font>资源名称</label>
						<div class="am-u-sm-8">
							<input type="text" id="parentName" placeholder="请输入资源名称">
						</div>
					</div>

					<div class="am-form-group">
						<label for="parentName" class="am-u-sm-4 am-form-label"><font color="red">*</font>资源描述</label>
						<div class="am-u-sm-8">
							<input type="text" id="parentName" placeholder="请输入资源描述">
						</div>
					</div>

					<div class="am-form-group">
						<label for="parentName" class="am-u-sm-4 am-form-label"><font color="red">*</font>资源类型</label>
						<div class="am-u-sm-8">
							<dic:getSelect attributes="{name:'resource'}" path="TOP->RESOURCE_TYPE"></dic:getSelect>
						</div>
					</div>
					
					<div class="am-form-group">
						<label for="parentName" class="am-u-sm-4 am-form-label"><font color="red">*</font>资源排序</label>
						<div class="am-u-sm-8">
							<select name="">
								
							</select>
						</div>
					</div>

					<div class="am-form-group">
						<div class="am-u-sm-12 am-u-sm-offset-2">
							<button type="button" class="am-btn am-btn-primary">保存</button>
							<button type="button" class="am-btn am-btn-warning">新增子节点</button>
							<button type="button" class="am-btn am-btn-warning">新增跟节点</button>
							<button type="button" class="am-btn am-btn-danger">删除</button>
						</div>
					</div>
				</form>
			</div>
		</div>

	</div>

	<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="<%=path %>/res/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="<%=path %>/res/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="<%=path %>/res/assets/js/amazeui.min.js"></script>
<script src="<%=path %>/res/assets/js/amazeui.min.js"></script>
<script src="<%=path %>/res/js/page.js"></script>
<script type="text/javascript" src="<%=path %>/res/zTree_v3/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript">
var setting = {	};

var zNodes =${vo};

$(document).ready(function(){
	$.fn.zTree.init($("#tree"), setting, zNodes);
});
	
</script>
</body>
</html>
